<template>
  <div
    :class="['zdy-button', {'zdy-button-primary': type === 'primary'}]"
    :style="{height: height + 'px', 'line-height': `calc(${height}px - 2px)`}"
  >
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "ZdyButton",
  props: {
    type: {
      type: String,
      default: "",
    },
    height: {
      type: Number,
      default: 36,
    },
  },
  setup() {
    return {

    }
  }
}
</script>

<style lang="less" scoped>
.zdy-button {
  display: inline-block;
  padding: 0px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  border: transparent solid 1px;
  border-color: #D9D9D9;
  color: rgba(0, 0, 0, 0.65);
  &.zdy-button-primary {
    border-color:#5975fb;
    background:#5975fb;
    color: #ffffff;
  }
  &:hover {
    opacity: 0.7;
  }
  &:active {
    opacity: 0.95;
  }
}
</style>
